home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / MacDOS 1.0.1 / batch files / listfile.bat < prev    next >
Encoding:
DOS Batch File  |  1993-07-30  |  256 b   |  12 lines  |  [TEXT/mDOS]

  1. @echo off
  2. ! this is a simple example of the usage of OPEN/READ/CLOSE
  3. ! type        LISTFILE aName        to list the text file named 'aName'
  4. ! It is equivalent to the standard TYPE command
  5. !
  6.     onerror DONE_LBL
  7.     open %1 id
  8.     repeat DONE_LBL
  9.     read %id%
  10. :DONE_LBL
  11.     set id=
  12.